import QtQuick
import QtQuick.Controls
import Qt5Compat.GraphicalEffects

Control {
    property alias icon: img.source
    property int size: 35
    property int unreadn:0
    id: root
    width: size
    height: size

    Rectangle {
        id: mask
        width: size
        height: size
        radius: 4
        visible: false
    }

    OpacityMask {
        anchors.fill: parent
        source: Image {
            id: img
            source: ''
        }
        maskSource: mask

        RedPoint {
            id: redpoint
            radius: 10
            x: root.width - radius
            y: -radius
            visible: unreadn
            value:unreadn
        }
    }
}
